package com.example.figurehecheng.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 宇科工作室
 * @since 2024-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("comment")
@ApiModel(value="Comment对象", description="")
public class CommentDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "用户名字")
    private String name;

    @ApiModelProperty(value = "打分")
    private Integer mark;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "回复的父类id")
    private Integer pid;

    @ApiModelProperty(value = "回复对象名")
    private String payName;

    @ApiModelProperty(value = "回复时间")
    private String time;

    @TableField(exist = false)
    @ApiModelProperty(value = "收集评论集合")
    private List Children;
}
